package com.dm.service.impl;

import com.dm.entity.Dormitory;
import com.dm.entity.Manager;
import com.dm.mapper.DormitoryMapper;
import com.dm.mapper.ManagerMapper;
import com.dm.service.IDormitoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dancun
 * @since 2021-05-02
 */
@Service
public class DormitoryServiceImpl extends ServiceImpl<DormitoryMapper, Dormitory> implements IDormitoryService {
    @Autowired
    DormitoryMapper dormitoryMapper;

    @Override
    public List<Dormitory> listManager() {
        return dormitoryMapper.listDormitory();
    }

    @Override
    public Dormitory getOneDormitory(Integer id) {
        return dormitoryMapper.getOneDormitory(id);
    }
}
